<!doctype html>
<html>

<head>
<link rel="stylesheet" type="text/css" href="styles/font-awesome.css" />
<link rel="stylesheet" type="text/css" href="styles/simditor.css" />

<script type="text/javascript" src="scripts/js/jquery.min.js"></script>
<script type="text/javascript" src="scripts/js/module.js"></script>
<script type="text/javascript" src="scripts/js/uploader.js"></script>
<script type="text/javascript" src="scripts/js/simditor.js"></script>
</head>

<body>
	<textarea id="editor" placeholder="这里输入内容" autofocus></textarea>
	<button id="btn">get</button>
</body>

<script type="text/javascript">
var toolbar = ['title', 'bold', 'italic', 'underline', 'strikethrough', 'fontScale', 'color', '|', 'ol', 'ul', 'blockquote', 'code',  '|', 'link', 'image', 'hr', '|', 'indent', 'outdent', 'alignment'];
  $(function(){
	  
  })
    var editor = new Simditor({
      textarea: $('#editor'),
	    upload:{
		 url: '../../uploadfile.do',
		 toolbar: toolbar,  
		params: null,
		fileKey: 'file',
		connectionCount: 3,
		leaveConfirm: '正在上传文件，如果离开上传会自动取消'
		}
   
    });
	editor.setValue('hello world') ;
	
	$("#btn").click(function(){
		  alert(editor.getValue());	
	  });
  </script>

</html>
